<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文章显示页面</title>
<css file='__PUBLIC__/css/base.css' />
<jquery />
<js file='__PUBLIC__/js/iframe.js' />
</head>
<body>
	<div class='now_path'>
		<strong>您现在的位置是:</strong>
		<a href='#'>文章管理</a>
	</div>
	<div class="send1">
        <a href="__CONTROL__/add_news_show/catid/{$hd.get.catid}/mid/{$hd.get.mid}" target="con" class="current button1">发表文章</a>
    </div>
	<form action='' method='post'>
		<table class="table1">
			<thead>
				<tr>
					<td width="10"><input type="checkbox" id='input_quanxuan'/></td>
					<td width="30">ID</td>
					<td width='280'>标题</td>
					<td width="100">栏目</td>
					<td width="60">点击率</td>
					<td width="100">作者</td>
					<td width="150">发布时间</td>
					<td width="60">审核</td>
					<td width="230">操作</td>
				</tr>
			</thead>
			<tbody>
			<list from="$news" name="$v">
				<tr>
					<td width="10"><input type="checkbox" name='xuanze[]' value='{$v.id}' class='selected'/></td>
					<td width="30">{$v.id}</td>
					<td><a href='__WEB__/index/content/index/nid/{$v.id}' target='__blank'>{$v.title}</a></td>
					<td width="160"><a href='__APP__/news/index/catid/{$v.catid}'>{$v.cname}</a></td>
					<td width="60">{$v.click}</td>
					<td width="100">{$v.username}</td>
					<td width="150"><?php echo date('Y-m-d',$v['addtime']);  ?></td>
					<td width="60"><if value='$v.status'>已审核<else /><font style='color:red;'>未审核</font></if></td>
					<td width="230" style="font-size:12px;">
					<a href="__WEB__/index/content/index/nid/{$v.id}">浏览</a> | 
					<a href="__WEB__/admin/news/news_modify/nid/{$v.id}/mid/{$hd.get.mid}/catid/{$v.catid}">编辑</a> | 
					<a href="__WEB__/admin/news/news_recycle/nid/{$v.id}/mid/{$hd.get.mid}">删除</a> | 
					<a href="#">评论</a>
					</td>
				</tr>
			</list>
			</tbody>  
		</table>
		<div class="send2 l">
			<a href="#" class="button1" id='quanxuan'>全选</a>
			<a href="#" class="button1" id='fanxuan'>反选</a>
			<input type='submit' class='button2' value='删除' onclick='if(confirm("确定进行删除操作吗？")){this.form.action="__WEB__/admin/news/news_recycle/mid/{$hd.get.mid}";this.form.submit();}'/>
			<?php $_GET['status'] = isset($_GET['status'])?$_GET['status']:1; ?>
			<input type='submit' class='button2' value='未审' onclick="this.form.action='__WEB__/admin/news/news_shen_many/shenhe/0/mid/{$hd.get.mid}';this.form.submit();"/>
			<input type='submit' class='button2' value='审核' onclick="this.form.action='__WEB__/admin/news/news_shen_many/shenhe/1/mid/{$hd.get.mid}';this.form.submit();"/>
		</div>
		<if value='$status eq 1'>
		<div  class='flag l'>
		<ul>
			<foreach from='$attrs' value='$v'>
			<li class='fname'><label><input type='checkbox' name='attrrelation[]' value='{$v.aid}'/>{$v.aname}</label></li>
			</foreach>
			<li class='btn1'><input type='submit' value='提交' class='button3' onclick='this.form.action="__WEB__/admin/news/news_attr_many/mid/{$hd.get.mid}";this.form.submit();'/></li>
		<ul>
		</div>
		<div class='yidong l'>
			<ul>
				<li>
					<select name='yidong'>
						<option vlaue=''>--请选择栏目--</option>
						<foreach from='$category' value='$v'>
					        <if value="$v.level gt 1">
					        	<if value='$v.level eq 2'>
					            	<option value= "{$v.catid}" style='background:#eee;'>=>{$v.cname}</option>
								<else />
									<option value= "{$v.catid}">{$v.html}└{$v.cname}</option>
								</if>
					        </if>
						</foreach>
					</select>
				</li>
				<li><input type='submit' value='移动到' class='button3' onclick='this.form.action="__WEB__/admin/news/news_yidong_many/mid/{$hd.get.mid}";this.form.submit();'/></li>
			</ul>
		</div>
		</if>
	<form>
	<div class="page r" style="margin-top:10px;">{$page}</div>
</body>
</html>